var mongoose=require("mongoose");
mongoose.Promise=global.Promise; 
var db=mongoose.createConnection("mongodb://wopelo:mongo@localhost:27017/blog");
var sayingSchema=require("../schemas/saying.js");
db.on("error",function(err){
	console.log(err);
});
db.on("open",function(){
	console.log("saying被打开");
});
var Saying=db.model("Saying",sayingSchema);

module.exports=Saying;